﻿using Client.Constant;
using Client.Framework.Message;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Client.Message.Response
{
    [MessageAttr(MessageId.OPT_RESP)]
    class OperationResp : ResponseBaseMessage
    {
        public int Code { get; set; }
        public int OptType { get; set; }
        public string Content { get; set; }


        public override void Deserialize(byte[] buffer)
        {
            OptResp msg = OptResp.Parser.ParseFrom(buffer);
            Code = msg.Code;
            OptType = msg.OptType;
            Content = msg.Content;
        }
    }
}
